<?php
/* @var $this PengajianController */
/* @var $model Pengajian */
/* @var $form CActiveForm */
global $array_hari, $array_pasaran;
//$isnew = $model->isNewRecord;
?>

<div class="form">

    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'pengajian-form',
        'enableAjaxValidation' => false,
    ));
    ?>



    <?php echo $form->errorSummary($model); ?>

    <table border="0" style="margin: 10px 0px;">
        <tr>
            <td valign="top">
                <div class="tamuisianlabel"><b><?php echo $form->labelEx($model, 'penceramah'); ?></b></div>
            </td>
            <td valign="top">
                <div class="tamuisianlabel"><b>:</b></div>
            </td>
            <td class="idform">
                <?php //echo $form->hiddenField($model, 'penceramah'); ?>
                <?php
                $this->widget('zii.widgets.jui.CJuiAutoComplete', array(
                    'model' => $model,
                    'attribute' => 'penceramah',
                    'source' => url('pengajian/ListPenceramah'),
//                    /'value' => $model->penceramah,
                    'options' => array(
                        'showAnim' => 'fold',
                    ),
                    'htmlOptions' => array('size' => '50')));
                ?>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <div class="tamuisianlabel"><b><?php echo $form->labelEx($model, 'hari'); ?></b></div>
            </td>
            <td valign="top">
                <div class="tamuisianlabel"><b>:</b></div>
            </td>
            <td valign="top">
                <?php
                echo $form->dropDownList($model, 'hari', $array_hari, array(
                    'empty' => '(Pilih Hari)',
                    'style' => 'width:150px',));
                ?>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <div class="tamuisianlabel"><b><?php echo $form->labelEx($model, 'pasaran'); ?></b></div>
            </td>
            <td valign="top">
                <div class="tamuisianlabel"><b>:</b></div>
            </td>
            <td valign="top">
                <?php
                echo $form->dropDownList($model, 'pasaran', $array_pasaran, array(
                    'empty' => '(Pilih Pasaran)',
                    'style' => 'width:150px',));
                ?>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <div class="tamuisianlabel"><b><?php echo $form->labelEx($model, 'waktu'); ?></b></div>
            </td>
            <td valign="top">
                <div class="tamuisianlabel"><b>:</b></div>
            </td>
            <td>
                <?php echo $form->textField($model, 'waktu', array('size' => 30, 'maxlength' => 30)); ?>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <div class="tamuisianlabel"><b><?php echo $form->labelEx($model, 'tempat'); ?></b></div>
            </td>
            <td valign="top">
                <div class="tamuisianlabel"><b>:</b></div>
            </td>
            <td>
                <?php echo $form->textField($model, 'tempat', array('size' => 30, 'maxlength' => 30)); ?>
            </td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>   <?php echo CHtml::submitButton($model->isNewRecord ? 'Buat' : 'Simpan', array('class' => 'form-submit')); ?></td>
        </tr>
    </table>

    <?php $this->endWidget(); ?>

</div><!-- form -->